package com.miyu.client1.test;

import com.alibaba.fastjson.JSONObject;

public class bookSource {


    public static JSONObject getSource(){
      //  biquge5200,ddxs,biquge
        JSONObject bs = new JSONObject();
        JSONObject biquge5200bs = new JSONObject();
        JSONObject ddxsbs = new JSONObject();
        JSONObject biqugebs = new JSONObject();

        biquge5200bs.put("source","biquge5200");
        biquge5200bs.put("index","https://www.biquge5200.com/modules/article/search.php?searchkey=");
        biquge5200bs.put("type","get");
        biquge5200bs.put("root","https://www.biquge5200.com");

        bs.put("biquge5200",biquge5200bs);
        ddxsbs.put("source","ddxsbs");
        ddxsbs.put("index","http://www.ddxs.com/search.php");
        ddxsbs.put("type","post");
        ddxsbs.put("root","http://www.ddxs.com");
        bs.put("ddxs",ddxsbs);
        biqugebs.put("source","ddxsbs");
        biqugebs.put("index","http://www.biquge.com/searchbook.php?keyword=");
        biqugebs.put("type","get");
        biqugebs.put("root","http://www.biquge.com");
        bs.put("biquge",biqugebs);

        return bs;
    }

    public static void main(String[] args) {
        String str ="http://147xs.org/book/7021/book/7021/10531859.html";
        String st = str.substring(str.lastIndexOf("/"));

        System.out.println(st);
    }
}
